home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / library / find36_3.rdm < prev    next >
Text File  |  1996-02-22  |  2KB  |  49 lines

  1. Short:    Locate/process files. Small & powerful!
  2. Author:   zodiac@darkness.gun.de (Ralph Seichter)
  3. Uploader: zodiac@darkness.gun.de
  4. Type:     util/misc
  5.  
  6.    I wrote 'find' because I needed a tool to find files (obviously :) which
  7. match a given name pattern. 'find' is able to search multiple directories,
  8. including all subdirectories, the current directory and its subdirs, or the
  9. current CLI command path only. The output can be formatted in a way which
  10. tries to imitate 'List LFORMAT' behaviour, and you can make 'find' create
  11. shell scripts for you and execute them on the fly.
  12.  
  13.    Please note that 'find' is pure, you can make it resident. As it is less
  14. than 3 KB in size, this is recommended. Check the executable by using the
  15. List command (you should see output like the following line) and modify the
  16. file protection bits if necessary:
  17.  
  18.         find   2760 --p-rwed 17-Jan-96 16:45:55
  19.  
  20.    Requires 'dos.library' V36 (OS 2.0) or better.
  21.  
  22. [...]
  23.  
  24. USAGE EXAMPLES
  25.  
  26.    Locate all C source files on partition DH1:
  27.    -> find #?.c dh1:
  28.  
  29.    Find all Icons in the current directory and all its subdirs, but
  30.    don't display the ".info" suffix.
  31.    -> find #?.info lformat %m
  32.  
  33.    Print file name stems and extensions as a formatted table.
  34.    -> find #? RAM: lformat "%-20N|%3.3e"
  35.  
  36.    Get rid of all files with the prefix "foo" on some partitions, but
  37.    don't go deeper than three subdirectory levels while scanning.
  38.    -> find foo#? sys: dh2: bozo: depth=3 lformat="delete %p%n" exec
  39.  
  40.    Find 'Type' in the command path.
  41.    -> find Type path
  42.  
  43.    Find all occurences of 'bar' in the command path.
  44.    -> find bar full
  45.  
  46.    I hope that these few examples show some of the potential of 'find'. The
  47. possibility to create shell scripts and have them executed without further
  48. interaction is certainly very useful for many tasks.
  49.